#pragma once

#include <iostream>

#define GS_TRACE( x ) \
	{ \
	if( GLog::shouldLogFile( GLog::getTraceLevel( __FILE__ ) ) ){ \
	std::cout << x << std::endl; \
	} \
	}

class GLog
{
public:
	GLog();
	virtual ~GLog();

	static void initialize();
	static void finalize();

	static bool shouldLogFile( char * fileName );
	static char* getTraceLevel( const char * fullPath );

private:

	static bool _enabled;
	static char** _traceList;
	static int _traceNum;
};

